package com.apex.crm.dao;

import com.apex.crm.base.BaseMapper;
import com.apex.crm.query.CustomerContactQuery;
import com.apex.crm.vo.CustomerContact;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface CustomerContactMapper extends BaseMapper<CustomerContact,Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(CustomerContact record);

    //int insertSelective(CustomerContact record);

    CustomerContact selectByPrimaryKey(Integer id);

    //int updateByPrimaryKeySelective(CustomerContact record);

    int updateByPrimaryKey(CustomerContact record);

    CustomerContact selectByCusId(Integer cid);

    List<CustomerContact> selectAll(CustomerContactQuery customerContactQuery) throws DataAccessException;

    int deleteById(CustomerContact customerContact);
}